{include file=$header_start}
{strip}
<script src="{$siteroot}/includes/js/admin/testimonial.js" type="text/javascript"></script>
{literal}
<script language="JavaScript">
function limitText(limitField, limitCount, limitNum) {
	if (limitField.value.length > limitNum) {
		limitField.value = limitField.value.substring(0, limitNum);
	} else {
		limitCount.value = limitNum - limitField.value.length;
	}
}
</script>
{/literal}
{/strip}
{include file=$header_end}

 <div class="contain">
 
      {include file=$left_menu}
      
      <div class="right_contain">
        
         <div class="heading_box">Add Testimonial </div>
         <div class="whitebox">
         <!--Message Div Start-->
          {if $msg}
         <div class="masg_div">
        
          	{$msg}
         
         </div>
         {/if}
         <!--Message Div End-->
         
         <form name="frmedittest" id="frmedittest" action="" method="post">
         <input type="hidden" id="page" name="page" value="{$page}" />
         <div>
          <!--Form Contain start-->
           
           <div class="form_fieldbox">
                        
             <dl>
              <dt>Username: <span class="error">*</span></dt>
             	 <dd>
                 	<select class="input" name="username" id="username" tabindex="1" >
                    <option value="" selected="selected"> Select User Name </option>
                    {section name=j loop=$userArray}
                    	<option value="{$userArray[j].id}">{$userArray[j].first_name|ucfirst} {$userArray[j].last_name|ucfirst}</option>
                    {/section}
                    </select>
                </dd>
              <div class="clear"></div>
             </dl>
<!--             <dl>
              <dt>Testimonial Title: <span class="error">*</span></dt>
             		<dd>
                 <input type="text" class="input" name="title" id="title" value=""/>
                 </dd>
              <div class="clear"></div>
             </dl>
-->
             
             <dl>
              <dt>Testimonial Content : <span class="error">*</span></dt>
              <dd><textarea tabindex="2" name="description" class="input"  id="description" cols="45" rows="8" onKeyDown="limitText(this.form.description,this.form.countdown,500);" 
onKeyUp="limitText(this.form.description,this.form.countdown,500);"></textarea>
                    <br /><font size="1">(Maximum characters: 500)<br>
You have <input readonly type="text" name="countdown" size="3" {if $total eq '0' || $total} value="{$total}" {else} value="500" {/if}> characters left.</font>
</dd>
              <div class="clear"></div>
             </dl>
            </div>
            
            <!--Form Contain end--> 
          
           <!--Button here start-->
           <div>
            <span><input type="submit" class="admin_btn" value="Submit" name="addtestimonial_btn" id="addtestimonial_btn" tabindex="3" /></span>
            <span><input type="button" class="admin_btn" value="Cancel" onclick="window.location='{$siteroot}/admin/home.php?q=testimonials';" tabindex="4"/></span>
           </div>
            <!--Button here end-->
  
         </div>
         </form>
         
         </div>
        </div>
      
      
      <!--right_contain end-->
      <div class="clear"></div>
    </div>
    
{include file=$footer}